class CreateAccountsDocuments < ActiveRecord::Migration
  def self.up
    create_table :accounts_documents, :id => false do |t|
      t.references :account
      t.references :document
    end
    add_index :accounts_documents, :account_id
    add_index :accounts_documents, :document_id    
  end

  def self.down
    drop_table :accounts_documents
  end
end